package com.mika.music.service;

import com.mika.music.mapper.ListenMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ListenService {

    @Autowired
    private ListenMapper listenMapper;

    public Integer addListenRecord(Integer userId, Integer musicId) {
        return listenMapper.addListenRecord(userId, musicId);
    }

    public Integer deleteListenRecordByMusicId(Integer musicId) {
        return listenMapper.deleteListenRecordByMusicId(musicId);
    }


}
